﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ExamEndViewer.aspx.cs" Inherits="Skynet.WebSite.Evaluation.ExamEndViewer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AjaxContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="FormView1" runat="server"  
        DataSourceID="odsWorkExamByCustomer" Width="100%" DataKeyNames="Id">
        <ItemTemplate>
            <fieldset>
                <legend> Exam Information</legend>
                <table border="0" cellpadding="5" cellspacing="5" width="100%">                
                <tr>
                    <td>
                        Title
                    </td>
                    <td>
                         <%# Eval("Title")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Duration
                    </td>
                    <td>
                         <%# Eval("Duration")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Valid 
                    </td>
                    <td>
                         <%# Eval("ValidFrom")%> - <%# Eval("ValidTo")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Result
                    </td>
                    <td>
                         <%# Eval("Score")%>
                    </td>
                </tr>
                <tr>
                    <td>
                        Confirm
                    </td>
                    <td>
                        <asp:LinkButton ID="btnAccept" Text="Finish" runat="server"   OnClick="Finish_Click"/>
                    </td>
                </tr>
                </table>
            </fieldset>               
        </ItemTemplate>
    </asp:FormView>
     <asp:ObjectDataSource ID="odsWorkExamByCustomer" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetActiveExams"         
        TypeName="Skynet.WebAdministracion.Views.ExamEndViewer.ExamEndViewerPresenter">
        <SelectParameters>
            <asp:SessionParameter DbType="Guid" Name="RuntimeExamByCustomerId" SessionField="RuntimeExamByCustomerId" />
        </SelectParameters>
        
    </asp:ObjectDataSource>
</asp:Content>
